OUTPUT=prezentace.pdf
NAME= talk
APPENDIX = appendix
all: $(NAME).pdf $(APPENDIX)
	pdftk $(NAME).pdf $(APPENDIX).pdf cat output $(OUTPUT)

$(NAME).pdf:

#%.dvi : %.tex
#	latex $<
#	latex $<

%.ps : %.dvi
	dvips -o $@ $<

%.pdf : %.ps
	ps2pdf $< $@

%.pdf : %.tex
	pdflatex $<
	pdflatex $<

%.pdf : %.fig
	fig2dev -L pdftex $< $@
$(APPENDIX):
	texexec $(APPENDIX).tex 
clean:
	-rm -f *~ *.out *.aux *.dvi *.ps *.pdf *.toc *.lof *.log *.lot *.flg *.bbl *.blg *.idx *.ind *.ilg *.snm *.nav *.fig.bak
